package org.springblade.modules.platform.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
public class GetEquipmentOperationVO {


	@ApiModelProperty(value = "在线数量")
	@JsonSerialize(nullsUsing = NullSerializer.class)
	private Long onlinAmount;

	@ApiModelProperty(value = "离线数量")
	@JsonSerialize(nullsUsing = NullSerializer.class)
	private Long offlineAmount;

	@ApiModelProperty(value = "未激活")
	@JsonSerialize(nullsUsing = NullSerializer.class)
	private Long inactivatedAmount;


	@ApiModelProperty(value = "总数")
	@JsonSerialize(nullsUsing = NullSerializer.class)
	private Long amount;
	private List<EquipmentTypeVO> voList;

	@NoArgsConstructor
	@Data
	public static class EquipmentTypeVO {
		@ApiModelProperty(value = "key")
		private String key;
		@ApiModelProperty(value = "名称")
		private String name;

		@ApiModelProperty(value = "数量")
		@JsonSerialize(nullsUsing = NullSerializer.class)
		private Long count;

		@ApiModelProperty(value = "在线数量")
		@JsonSerialize(nullsUsing = NullSerializer.class)
		private Long onlinAmount;

		@ApiModelProperty(value = "离线数量")
		@JsonSerialize(nullsUsing = NullSerializer.class)
		private Long offlineAmount;

		@ApiModelProperty(value = "未激活")
		@JsonSerialize(nullsUsing = NullSerializer.class)
		private Long inactivatedAmount;

	}

}
